package com.chenzehe.alimama.action;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class BaseAction {
	protected Logger log = LoggerFactory.getLogger(getClass());

	public WebDriver getWebDriver() {
		WebDriver webDriver = new FirefoxDriver();
		return webDriver;
	}

	public void closeWebDriver(WebDriver webDriver) {
		if (webDriver != null) {
			webDriver.close();
			webDriver = null;
		}
	}
}
